<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<h2><fmt:message key="form.requestHistoryList"/></h2>

<table class="regular">
	<thead>
		<tr>
			<th><fmt:message key="requestHistory.author" /></th>
			<th><fmt:message key="requestHistory.changeDate" /></th>
            <th><fmt:message key="requestHistory.status" /></th>
		</tr>
	</thead>

	<tbody>
		<c:forEach var="requestHistory" items="${requestHistoryList}">
			<tr>
			  <td><c:out value="${requestHistory.changeAuthor.lastName} ${requestHistory.changeAuthor.firstName }" default="no data"/></td>
			  <td><fmt:formatDate value="${requestHistory.changeDate}" type="both" pattern="dd.MM.yyyy HH:mm"/></td>
			  <td><c:out value="${requestHistory.requestStatus.status}" default="no data"/></td>
			</tr>
		</c:forEach>
	</tbody>
</table>